<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
        <?php
        // put your code here
        if(isset($data) && count($data)){
          echo "<h4>Recent News</h4>"; 
          echo "<hr>";
          echo "<ul>";
          foreach ($data as $row) {
              echo "<li>";
              echo "<i class='icon-record'></i>";
              echo $row['date'] . "&nbsp; &nbsp; &nbsp;";
              echo $row['news'];
              echo "</li>";
          }
          echo "</ul>";
        }
        ?>
    </body>
</html>
